const {
  defineConfig
} = require('@vue/cli-service')
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  css: {
    loaderOptions: {
      scss: {
        additionalData: `@import "@/assets/scss/_variable.scss";` //引入全局变量   
      }
    }
  },
  configureWebpack: {
    plugins: [new NodePolyfillPlugin()]
  }
})
